/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package getrootbahasa;

import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import weka.core.converters.CSVLoader;

/**
 *
 * @author WaOnEmperoR
 */
public class TesLoader {

    public static void main(String[] args){

        try {
            CSVLoader loader = new CSVLoader();
            loader.setSource(new File("preparebesar.csv"));

            //loader.setNominalLabelSpecs(args)
            Object [] isi = loader.getNominalLabelSpecs();

            System.out.println(isi.length);
            for (int i=0; i<isi.length; i++){
                System.out.println(isi[i].toString());
            }
        } catch (IOException ex) {
            Logger.getLogger(TesLoader.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
